package com.art.museumbackend.service;

import com.art.museumbackend.entity.Articles;
import com.art.museumbackend.entity.PageBean;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yezi
 * @since 2024-12-07
 */
public interface ArticlesService extends IService<Articles> {
    //新增文章
    void addArticle(Articles article);
    //文章列表分页查询
    PageBean<Articles> articleList(Integer pageNum, Integer pageSize, Integer parentColumnId,Integer subColumnId,String state);
    //文章详情
    Articles getArticleById(Integer articleId);
    //修改文章
    void updateArticle(Articles article);
    //删除文章
    void deleteArticle(Integer articleId);
    //文章列表
    List<Articles> articleListById(Integer parentColumnId, Integer subColumnId);
}
